package com.xiaohua.system.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

import com.xiaohua.common.annotation.Excel;
import com.xiaohua.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.Builder;
import lombok.Data;

/**
 * 文件管理对象 xh_files
 *
 * @author 小花
 * @date 2025-04-05
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder

public class XhFiles extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 文件ID
     */
    private Long fileId;

    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    private Long userId;

    /**
     * 文件名
     */
    @Excel(name = "文件名")
    private String fileName;

    /**
     * 文件类型
     */
    @Excel(name = "文件类型")
    private String fileType;

    /**
     * url地址
     */
    @Excel(name = "url地址")
    private String storagePath;

    /**
     * 是否加密
     */
    @Excel(name = "是否加密")
    private Integer isEncrypted;

    /**
     * 加密密钥
     */
    @Excel(name = "加密密钥")
    private String encryptionKey;

    /**
     * 上传时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;
    
}
